<script setup lang="ts">
import { seoConfig } from '~/config/seo'

useSeoMeta({
  title: seoConfig.products.verifySms.title,
  description: seoConfig.products.verifySms.description,
  keywords: seoConfig.products.verifySms.keywords
})

// 产品优势数据
const advantages = [
  {
    icon: 'lucide:zap',
    title: '极速到达',
    description: '短信5秒到达体验，网关提交<2秒，确保验证码及时送达'
  },
  {
    icon: 'lucide:shield-check',
    title: '安全可靠',
    description: '三网合一高质量通道，到达率99%以上，保障账户安全'
  },
  {
    icon: 'lucide:gauge',
    title: '超高并发',
    description: '千万号码容量超频次发送，轻松应对业务高峰'
  },
  {
    icon: 'lucide:clock',
    title: '智能调度',
    description: '智能路由分配，自动切换最优通道，保证送达率'
  },
  {
    icon: 'lucide:shield',
    title: '防刷机制',
    description: '多重防刷策略，有效拦截恶意请求，降低成本'
  },
  {
    icon: 'lucide:bar-chart-2',
    title: '实时监控',
    description: '提供详细的发送报告和数据统计，实时掌握发送状态'
  }
]

// 行业应用场景数据
const scenarios = [
  {
    icon: 'lucide:user-check',
    title: '用户注册',
    description: '新用户注册验证，确保手机号真实有效，防止恶意注册',
    color: 'from-blue-500 to-cyan-500'
  },
  {
    icon: 'lucide:log-in',
    title: '账号登录',
    description: '快速登录验证，提升用户体验，保障账户安全',
    color: 'from-purple-500 to-pink-500'
  },
  {
    icon: 'lucide:key-round',
    title: '密码找回',
    description: '忘记密码快速找回，通过短信验证身份，安全便捷',
    color: 'from-green-500 to-emerald-500'
  },
  {
    icon: 'lucide:credit-card',
    title: '支付确认',
    description: '交易支付验证，双重安全保障，防止资金损失',
    color: 'from-orange-500 to-red-500'
  },
  {
    icon: 'lucide:settings',
    title: '信息变更',
    description: '修改手机号、邮箱等敏感信息时的身份验证',
    color: 'from-indigo-500 to-blue-500'
  },
  {
    icon: 'lucide:shield-alert',
    title: '异常登录',
    description: '检测到异常登录行为时，及时发送验证码保护账户',
    color: 'from-yellow-500 to-orange-500'
  }
]
</script>

<template>
  <div class="min-h-screen">
    <!-- 顶部横幅 -->
    <ProductHero
      title="验证码短信"
      description="短信5秒到达体验，网关提交<2秒，千万号码容量超频次发送"
    />

    <!-- 产品优势 -->
    <section class="py-16 md:py-24 bg-gray-50">
      <div class="mx-auto px-4 max-w-6xl">
        <div class="text-center mb-16">
          <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">
            产品优势
          </h2>
          <p class="text-lg text-gray-600">
            高速、稳定、安全的验证码短信服务
          </p>
        </div>

        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8">
          <div
            v-for="(advantage, index) in advantages"
            :key="index"
            class="bg-white rounded-2xl p-6 md:p-8 shadow-sm hover:shadow-lg transition-all group"
          >
            <div class="w-14 h-14 bg-gradient-to-br from-blue-500 to-cyan-500 rounded-xl flex items-center justify-center mb-6 group-hover:scale-110 transition-transform">
              <Icon :name="advantage.icon" class="w-7 h-7 text-white" />
            </div>
            <h3 class="text-xl font-bold text-gray-900 mb-3">
              {{ advantage.title }}
            </h3>
            <p class="text-gray-600 leading-relaxed">
              {{ advantage.description }}
            </p>
          </div>
        </div>
      </div>
    </section>

    <!-- 行业应用场景 -->
    <section class="py-10 md:py-15 bg-white">
      <div class="mx-auto px-4 max-w-6xl">
        <div class="text-center mb-8 md:mb-10">
          <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">
            行业应用场景
          </h2>
          <p class="text-lg text-gray-600">
            覆盖各类业务场景，保障账户安全
          </p>
        </div>

        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8">
          <div
            v-for="(scenario, index) in scenarios"
            :key="index"
            class="group relative bg-white rounded-2xl p-6 md:p-8 border-2 border-gray-100 hover:border-transparent hover:shadow-xl transition-all overflow-hidden"
          >
            <!-- 悬停时的渐变背景 -->
            <div 
              class="absolute inset-0 bg-gradient-to-br opacity-0 group-hover:opacity-10 transition-opacity"
              :class="scenario.color"
            />
            
            <div class="relative">
              <div 
                class="w-14 h-14 rounded-xl flex items-center justify-center mb-6 bg-gradient-to-br"
                :class="scenario.color"
              >
                <Icon :name="scenario.icon" class="w-7 h-7 text-white" />
              </div>
              <h3 class="text-xl font-bold text-gray-900 mb-3">
                {{ scenario.title }}
              </h3>
              <p class="text-gray-600 leading-relaxed">
                {{ scenario.description }}
              </p>
            </div>
          </div>
        </div>
      </div>
    </section>

    <!-- CTA 部分 -->
    <CallToAction />
  </div>
</template>

